package org.catspaw.cherubim.matcher;

/**
 * 提供一个将大写全部转换为小写的功能
 * @author 孙宁振
 */
public abstract class AbstractStringMatcher implements StringMatcher {

	private boolean convertUrlToLowercaseBeforeComparison = false; //是否将大写转换为小写

	public boolean isConvertUrlToLowercaseBeforeComparison() {
		return convertUrlToLowercaseBeforeComparison;
	}

	public void setConvertUrlToLowercaseBeforeComparison(
			boolean convertUrlToLowercaseBeforeComparison) {
		this.convertUrlToLowercaseBeforeComparison = convertUrlToLowercaseBeforeComparison;
	}

	protected String getLowerCase(String target) {
		return target.toLowerCase();
	}
}
